package chabernac.android.wordbattle.paint.crosstile;

public class SvgResourceNameBuilder {
	private final StringBuilder myStringBuilder;
	private boolean mySelectAppended;
	
	public SvgResourceNameBuilder()
	{
		super();
		myStringBuilder = new StringBuilder();
		myStringBuilder.append("crosstile");
		mySelectAppended = false;
	}
	
	public String getResourceName()
	{
		if(mySelectAppended == false)
		{
			myStringBuilder.append("_none");
		}
		return myStringBuilder.toString();
	}
	
	public void appendSelectStringUpLeft()
	{
		myStringBuilder.append("a1");
		mySelectAppended = true;
	}
	
	public void appendSelectStringUpRight()
	{
		myStringBuilder.append("b1");
		mySelectAppended = true;
	}
	
	public void appendSelectStringDownLeft()
	{
		myStringBuilder.append("a2");
		mySelectAppended = true;
	}
	
	public void appendSelectStringDownRight()
	{
		myStringBuilder.append("b2");
		mySelectAppended = true;
	}
	
	public void appendSelectionBreak()
	{
		myStringBuilder.append("_");
		mySelectAppended = true;
	}
	
	
}
